<?php include template("header");?>
<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="content">
    <form action="/team/buy.php?id=<?php echo $team['id']; ?>" method="post" class="validator">
	<input id="deal-per-number" value="<?php echo $team['per_number']; ?>" type="hidden" />
    <div id="deal-buy" class="box">
        <div class="box-top"></div>
        <div class="box-content">
            <div class="head"><h2>发布消息，获取优惠</h2></div>
            <div class="sect">
				<table class="order-table">
					<tr class="order-total">
						<th class="deal-buy-desc"><strong>消息体选择：</strong></th>
					</tr>
					<tr>
						<td class="deal-buy-desc">
							<h1><input type="radio" name="remark" class="f-check" checked="checked" value="我拿到了<?php echo $team['discount_rate']; ?><?php echo $currency; ?>优惠，你呢？<?php echo $team['title']; ?>|||<?php echo $longURL; ?>|||<?php echo $shortURL; ?>|||<?php echo $team['discount_rate']; ?>"/>正常</h1>
							&nbsp;&nbsp;&nbsp;&nbsp;我获得了<?php echo $team['discount_rate']; ?><?php echo $currency; ?>优惠，你呢？<?php echo $team['title']; ?><?php if($shortURL){?>&nbsp;-&nbsp;<a href="<?php echo $shortURL; ?>" target="_blank"><?php echo $shortURL; ?></a><?php }?>
							<br/><br/>
							<h1><input type="radio" name="remark" class="f-check" value="爱玩，爱闹，也爱<?php echo $team['discount_rate']; ?><?php echo $currency; ?>优惠，我是拉普拉达人，快看这里。<?php echo $team['title']; ?>|||<?php echo $longURL; ?>|||<?php echo $shortURL; ?>|||<?php echo $team['discount_rate']; ?>"/>凡客体</h1>
							&nbsp;&nbsp;&nbsp;&nbsp;爱玩，爱闹，也爱<?php echo $team['discount_rate']; ?><?php echo $currency; ?>优惠，我是拉普拉达人，快看这里。<?php echo $team['title']; ?><?php if($shortURL){?>&nbsp;-&nbsp;<a href="<?php echo $shortURL; ?>" target="_blank"><?php echo $shortURL; ?></a><?php }?>
							<br/><br/>
							<h1><input type="radio" name="remark" class="f-check" value="神马！！！！我获得了<?php echo $team['discount_rate']; ?><?php echo $currency; ?>，有木有！！！有木有！！！！！<?php echo $team['title']; ?>|||<?php echo $longURL; ?>|||<?php echo $shortURL; ?>|||<?php echo $team['discount_rate']; ?>"/>咆哮体</h1>
							&nbsp;&nbsp;&nbsp;&nbsp;神马！！！！我获得了<?php echo $team['discount_rate']; ?><?php echo $currency; ?>，有木有！！！有木有！！！！！<?php echo $team['title']; ?><?php if($shortURL){?>&nbsp;-&nbsp;<a href="<?php echo $shortURL; ?>" target="_blank"><?php echo $shortURL; ?></a><?php }?>
							<br/><br/>
							<h1><input type="radio" name="remark" class="f-check" value="我获得了<?php echo $team['discount_rate']; ?><?php echo $currency; ?>，并转发，不是因为我在抢，而是因为动作娴熟。<?php echo $team['title']; ?>|||<?php echo $longURL; ?>|||<?php echo $shortURL; ?>|||<?php echo $team['discount_rate']; ?>"/>朝阳体</h1>
							&nbsp;&nbsp;&nbsp;&nbsp;我获得了<?php echo $team['discount_rate']; ?><?php echo $currency; ?>，并转发，不是因为我在抢，而是因为动作娴熟。<?php echo $team['title']; ?><?php if($shortURL){?>&nbsp;-&nbsp;<a href="<?php echo $shortURL; ?>" target="_blank"><?php echo $shortURL; ?></a><?php }?>
							<br/><br/>
							<h1><input type="radio" name="remark" class="f-check"/>我确定不要积分，所以不发布消息。</h1>
							<br/><br/>
						</td>
					</tr>
					
					<tr class="order-total">
						<th class="deal-buy-desc"><strong>将同步到：</strong></th>
					</tr>
					<tr>
						<td class="deal-buy-desc">
							<?php if(array_key_exists('renren', $user_network_weights)){?>
							<img src="/static/sync/logo_renren.png" title="人人网" />
							<?php }?>
							<?php if(array_key_exists('sina', $user_network_weights)){?>
							<img src="/static/sync/logo_sina.png" title="新浪微博" />
							<?php }?>
							<?php if(array_key_exists('kaixin001', $user_network_weights)){?>
							<img src="/static/sync/logo_kaixin001.png" title="开心网 />
							<?php }?>
							<?php if(array_key_exists('douban', $user_network_weights)){?>
							<img src="/static/sync/logo_douban.png" title="豆瓣网" />
							<?php }?>
						</td>
					</tr>
					
					<tr class="order-total">
						<th class="deal-buy-desc"><strong>手机号码（用于接收优惠券）：</strong></th>
					</tr>
					<tr>
						<td class="deal-buy-desc">
							<input type="text" size="30" name="mobile" id="signup-mobile" class="number" value="<?php echo $login_user['mobile']; ?>" require="true" datatype="mobile" />
						</td>
					</tr>
				</table>
				<input id="deal-buy-cardcode" type="hidden" name="cardcode" maxlength="8" value="" />
				<input type="hidden" name="id" value="<?php echo $order['id']; ?>" />
				<div class="form-submit"><input type="submit" class="formbutton" name="buy" value="确认发布，获取优惠"/></div>
								
				<table class="order-table">
					<?php if(count($user_network_weights) < 3){?>
					<tr class="order-total">
						<th class="deal-buy-desc"><strong>设置更多同步，扩展网络影响力，获取更大优惠：</strong></th>
					</tr>
					<tr>
						<td class="deal-buy-desc">
							<?php if(!array_key_exists('renren', $user_network_weights)){?>
							<a href="/account/ajax/sync_settings.php?web=renren" class="ajaxlink"><img src="/static/sync/logo_renren.png" title="人人网" /></a>
							<?php }?>
							<?php if(!array_key_exists('sina', $user_network_weights)){?>
							<a href="/account/ajax/sync_settings.php?web=sina" class="ajaxlink"><img src="/static/sync/logo_sina.png" title="新浪微博" /></a>
							<?php }?>
							<?php if(!array_key_exists('kaixin001', $user_network_weights)){?>
							<a href="/account/ajax/sync_settings.php?web=kaixin001" class="ajaxlink"><img src="/static/sync/logo_kaixin001.png" title="开心网" /></a>
							<?php }?>
							<?php if(!array_key_exists('douban', $user_network_weights)){?>
							<a href="/account/ajax/sync_settings.php?web=douban" class="ajaxlink"><img src="/static/sync/logo_douban.png" title="豆瓣网" /></a>
							<?php }?>
						</td>
					</tr>
					<?php }?>
				</table>
            </div>
        </div>
        <div class="box-bottom"></div>
    </div>
    </form>
</div>
<div id="sidebar">
	<?php if($login_user){?>
		<?php include template("block_side_network_weight");?>
	<?php }?>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<?php include template("footer");?>
